<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <title>perfect-scrollbar example</title>
    <link href="../dist/css/perfect-scrollbar.css" rel="stylesheet">
    <script src="../dist/js/perfect-scrollbar.js"></script>
    <style>
      h1 { text-align: center; }
      .container { position:relative; margin:0px auto; padding:0px; width: 600px; height: 400px; overflow: auto; }
      .container .content { background-image: url('./azusa.jpg'); width: 1280px; height: 720px; }

      .large-margin .ps-scrollbar-x-rail {
        margin: 0 25%;
        opacity: 0.5;
        background-color: #eee;
      }
      .large-margin .ps-scrollbar-y-rail {
        margin: 100px 0;
        opacity: 0.5;
        background-color: #eee;
      }
    </style>
  </head>
  <body>
    <h1>Default</h1>
    <div class="container">
      <div class="content">
      </div>
    </div>

    <h1>Margins</h1>
    <div class="container large-margin">
      <div class="content">
      </div>
    </div>
    <script>
      window.onload = function () {
        [].forEach.call(document.querySelectorAll('.container'), function (el) {
          Ps.initialize(el);
        });
      };
    </script>
  </body>
</html>
